package com.koron.system.app.mapper;

import com.koron.bean.app.AppBean;
import com.koron.bean.base.BaseQueryBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName AppMapper
 * @description
 * @Author zhouj
 * @Date 2021/7/13 10:49
 */
@Mapper
@Component
public interface AppMapper {

    int insert(AppBean appBean);

    int update(AppBean appBean);

    int softDelete(String id);

    int delete(String id);

    int deleteAppList(@Param("ids") List<String> ids);

    List<AppBean> queryAppList(@Param("appBean") AppBean appBean,@Param("queryBean") BaseQueryBean queryBean);

    AppBean querySingleApp(AppBean appBean);

    Long queryAppListCount(@Param("appBean") AppBean appBean);

    int startOrStopApp(@Param("ids") List<String> ids, @Param("status") Integer status);
}
